import argparse
import os
import cv2
import sys
import random


path = 'files'
if __name__ == "__main__":
    srcFile = os.path.join(path, 'file.txt')
    dstFile = os.path.join(path, 'dst.txt')
    f = open(srcFile,'r',encoding='UTF-8')
    lines = f.readlines()
    # file = os.open(filename,os.O_RDWR)
    # lines = file.readlines()
    # lines = os.read(file,1024)
    content = ""
    for line in lines:
        content = content + line.strip()
    # os.write(file,content)
    # os.close(file)
    f.close()

    content = content.replace('\n','')
    # content.replace('\r','')
    f = open(dstFile,"w",encoding='UTF-8')
    f.write(content)
    f.close()
     
    